#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "hidreactor.h"
#include <QThread>
#include <QMap>
#include <QProcess>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_searchBtn_clicked();

    void on_listenBtn_clicked();

    void on_muteBtn_clicked();

    void on_flashBtn_clicked();

    void on_vDecBtn_clicked();

    void on_vIncBtn_clicked();

    void DevStateCheck(int index = -1);

    void on_pushButton_clicked();

    void on_releaseBtn_clicked();

    void on_maxVolBtn_clicked();

    void on_minVolBtn_clicked();

private:
    Ui::MainWindow *ui;
    HidReactor *m_pReactor = 0;
    QThread    *select_thread = 0;
    bool        m_bSelecting;
    QMap<QString,HidDevice*> m_hidDevices;
    QProcess *myProcess = 0;
};
#endif // MAINWINDOW_H
